home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 4
/
The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO
/
clang
/
cujaug93.zip
/
1108109A
< prev
next >
Wrap
Text File
|
1993-06-09
|
394b
|
21 lines
/* ptr2ptr.c: Pointers to pointers */
#include <stdio.h>
main()
{
int i = 7;
int *ip = &i;
int **ipp = &ip;
printf("Address %p (i) contains %d\n",ip,*ip);
printf("Address %p (ip) contains %p\n",ipp,*ipp);
printf("**ipp == %d\n",**ipp);
return 0;
}
/* OUTPUT:
* Address FFF4 (i) contains 7
* Address FFF2 (ip) contains FFF4
* **ipp == 7 */